# -*- coding: utf-8 -*-
# @Author: fanmingxiang@touty.io
# @Date: 2023/3/23 21:02
from apitests.models import CaseTemporary


def read_sql():
    a = CaseTemporary.objects.all()
    arr = []
    for b in a:
        arr.append((b.method, b.interface, b.headers, b.params, b.body_type, b.body, b.is_assert, b.assert_type, b.assert_body))
        # print(b.method, b.interface, b.headers, b.params, b.body_type, b.body, b.is_assert, b.assert_type, b.assert_body)
    return arr


if __name__ == '__main__':
    read_sql()